<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"   
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core"
      >
	<h:form>
		<h:panelGroup rendered="#{!mbLogin.connecte}">
			<span>Login : </span><h:inputText value="#{mbLogin.login}" />
			<span>Mot de passe : </span><h:inputSecret value="#{mbLogin.mdp}" />
			<div class="login_buttons_block"><h:commandLink value="Se connecter" action="#{mbLogin.click}"/><br/>
			<a href="signin.xhtml"><h:outputText value="S'enregistrer"/></a></div>
		</h:panelGroup>
		<h:panelGroup rendered="#{mbLogin.connecte}">
			<span>Bonjour #{mbLogin.utilisateur.nom} #{mbLogin.utilisateur.prenom}</span>
			
			
			<div class="login_buttons"><h:commandLink value="Déconnexion" action="#{mbLogin.deconnexion2}"/></div>
		</h:panelGroup>
	</h:form>
</html>